<?php
function smarty_modifier_substrd($string,$len,$char="utf8")
{
   return mb_substr($string,0,$len,$char);
}

?>
